function get_model() {
  var shoudata = {
    "Company": "EPIC06",
    "VendorNum": 0,
    "PurPoint": "",
    "PackSlip": "string",
    "ReceiptDate": "2022-06-08T05:35:07.519Z",
    "EntryPerson": "string",
    "SaveForInvoicing": true,
    "Invoiced": true,
    "ReceiptComment": "string",
    "ReceivePerson": "string",
    "ShipViaCode": "",
    "EntryDate": "2022-06-08T05:35:07.519Z",
    "Plant": "string",
    "PONum": 0,
    "LCReference": "string",
    "LCComment": "string",
    "LandedCost": "0",
    "LegalNumber": "string",
    "LCVariance": "0",
    "ICLinked": true,
    "GlbCompany": "string",
    "GlbVendorNum": 0,
    "GlbPurPoint": "string",
    "GlbPackSlip": "string",
    "ContainerID": 0,
    "Weight": "0",
    "LCDisburseMethod": "string",
    "AutoReceipt": true,
    "AutoTranType": "string",
    "POType": "",
    "AutoTranID": 0,
    "WeightUOM": "string",
    "UpliftPercent": "0",
    "SpecDutyAmt": "0",
    "AppliedLCAmt": "0",
    "LCDutyAmt": "0",
    "LCIndCost": "0",
    "ApplyToLC": true,
    "Received": true,
    "ArrivedDate": "2022-06-08T05:35:07.519Z",
    "AppliedRcptLCAmt": "0",
    "LCUpliftIndCost": "0",
    "AppliedLCVariance": "0",
    "TranDocTypeID": "string",
    "ImportNum": "string",
    "ImportedFrom": 0,
    "ImportedFromDesc": "string",
    "GrossWeight": "0",
    "GrossWeightUOM": "string",
    "SysRevID": "0",
    "SysRowID": "00000000-0000-0000-0000-000000000000",
    "ChangedBy": "string",
    "ChangeDate": "2022-06-08T05:35:07.519Z",
    "TaxRegionCode": "string",
    "TaxPoint": "2022-06-08T05:35:07.519Z",
    "TaxRateDate": "2022-06-08T05:35:07.519Z",
    "InPrice": true,
    "HdrTaxNoUpdt": true,
    "TaxRateGrpCode": "string",
    "TaxesCalculated": true,
    "InAppliedLCAmt": "0",
    "InAppliedLCVariance": "0",
    "InAppliedRcptLCAmt": "0",
    "InLandedCost": "0",
    "InLCDutyAmt": "0",
    "InLCIndCost": "0",
    "InLCUpliftIndCost": "0",
    "InLCVariance": "0",
    "InSpecDutyAmt": "0",
    "CNDeclarationBill": "",
    "CNBonded": true,
    "AddrList": "string",
    "PartialReceipt": true,
    "POLine": 0,
    "PORel": 0,
    "POTypeDesc": "string",
    "ShipViaDesc": "string",
    "TotalAmt": "0",
    "TotDedTaxAmt": "0",
    "TotDutiesAmt": "0",
    "TotGrossWeight": "0",
    "TotGrossWeightUOM": "string",
    "TotIndirectCostsAmt": "0",
    "TotLinesAmt": "0",
    "TotSATaxAmt": "0",
    "TotTaxAmt": "0",
    "TotWeight": "0",
    "TotWeightUOM": "string",
    "TotWHTaxAmt": "0",
    "UpdateDtlArvdDate": true,
    "UpdateDtlRcptDate": true,
    "UpdateDtlRecs": true,
    "AllowLCUpdate": true,
    "AllowUplift": true,
    "CurrencyCode": "string",
    "DispLandedCost": "0",
    "eshReceived": true,
    "IntQueID": 0,
    "LCMessage": "string",
    "LegalNumberMessage": "string",
    "OrigLandedCost": "0",
    "AddrListFormatted": "string",
    "BitFlag": 0,
    "PurPointName": "string",
    "PurPointCountry": "string",
    "PurPointState": "string",
    "PurPointAddress3": "string",
    "PurPointAddress1": "string",
    "PurPointPrimPCon": 0,
    "PurPointAddress2": "string",
    "PurPointCity": "string",
    "PurPointZip": "string",
    "ShipViaCodeWebDesc": "string",
    "ShipViaCodeDescription": "string",
    "TaxRegionCodeDescription": "string",
    "VendorNumState": "string",
    "VendorNumTermsCode": "string",
    "VendorNumVendorID": "string",
    "VendorNumAddress2": "string",
    "VendorNumCity": "string",
    "VendorNumDefaultFOB": "string",
    "VendorNumCurrencyCode": "string",
    "VendorNumName": "string",
    "VendorNumZIP": "string",
    "VendorNumCountry": "string",
    "VendorNumAddress3": "string",
    "VendorNumAddress1": "string",
    "vrPONumShipToConName": "string",
    "vrPONumShipName": "string",
    "XbSystReceiptTaxCalculate": true,
    "XbSystAPTaxLnLevel": true,
    "RowMod": "string"
  };
  return shoudata;
}


function get_header_model() {
  userinfo = get_user_info();
  var shoudata = {
    "Company": "epic06",
    "VendorNum": 39,
    "PackSlip": "11122",
    "ReceiptDate": "2022-06-09T06:28:15.772Z",
    "EntryPerson": "epicor",
    "ReceivePerson": "epicor",
    "ShipViaCode": "BEST",
    "EntryDate": "2022-06-09T06:28:15.773Z",
    "ArrivedDate": "2022-06-09T07:38:32.095Z",
    "Plant" : userinfo.Site
  } 
  return shoudata;
}

function get_row_model() {
  userinfo = get_user_info();
  var shoudata = {
    "Company": "EPIC06",
    "VendorNum": 39,
    "PackSlip": "11122",
    "PackLine": 1, //
    "PartNum": "00C5",
    "WareHouseCode": "RCV",
    "BinNum": "RCV-1",
    "InputOurQty": "1",
    "IUM": "KG",
    "VendorQty": "1",//
    "PUM": "KG",
    "PONum": 4267,
    "POLine": 1,
    "PORelNum": 1,
    "PartDescription": "Component C5",
    "ReceiptType": "P",//
    "Received": true, //
    "Plant" : userinfo.Site
  }
  return shoudata;
}


function get_misc_model() {
  var shoudata = {
    "pcPartNum": "001MP",   //物料编码
    "pcTranType": "STK-UKN",  //固定内容
    "pcMtlQueueRowID": "00000000-0000-0000-0000-000000000000", //固定内容
    "ds": {
      "IssueReturn": [
        {
          "Company": "EPIC06", //公司编号
          "PartNum": "001MP", //物料编码
          "TranQty": "1",   //发出数量
          "ReasonCode": "ADD",  //原因代码 ，先固定    
          "FromWarehouseCode": "CHI", //仓库代码，从物料主档中取，参考之前收货模块
          "FromBinNum": "00-00-00", //仓位，从物料主档中取，参考之前收货模块
          "TranType": "STK-UKN", //固定内容
          "UM": "EA", //单位从物料主档中取
        }
      ]
    }
  }
  return shoudata;
}


function get_misc_model2() {
  var shoudata = {
    "plNegQtyAction": true,
    "ds": {
      "IssueReturn": [],
      "LegalNumGenOpts": [],
      "SelectedSerialNumbers": [],
      "SNFormat": [],
      "ExtensionTables": []
    }
  }
  return shoudata;
}



function get_job_model() {
  var shoudata = {
    "pcTranType": "STK-MTL", //固定內容
    "pcMtlQueueRowID": "00000000-0000-0000-0000-000000000000", //固定內容
    "pCallProcess": "IssueMaterial",//固定內容
    "ds": {
      "SelectedJobAsmbl": [
        {
          "Company": "EPIC06", //公司编号
          "JobNum": "2468",  //发料的工单号
          "AssemblySeq": 0,  //发料的半成品
          "SysRowID": "00000000-0000-0000-0000-000000000000", //固定內容
          "RowMod": "U" //固定內容
        }
      ]
    }
  }
  return shoudata;
}

function get_job_model2() {
  var shoudata = {
    "plNegQtyAction": true,
    "ds": {},
    "parameters": {}
  }
  return shoudata;
}


function get_deliver_model() {
  var shoudata = {
    "ds": {
      "ShipHead": [
        {
          "Company": "EPIC06", //公司编号     
          "ShipDate": "2022-07-20T06:43:52.552Z",   //出货日期，可取当天日期      
          "CustNum": 33 //出货客户编号
        }
      ]

    }
  }
  return shoudata;
}
function get_deliver_model2() {
  var shoudata = {
    "ds": {
      "ShipHead": [],
      "ShipHeadAttch": [],
      "CartonTrkDtl": [],
      "ShipDtl": [],
      "ShipDtlAttch": [],
      "ShipCOO": [],
      "ShipDtlPackaging": [],
      "ShipDtlTax": [],
      "ShipMisc": [],
      "ReplicatedPacks": [],
      "ShipUPS": [],
      "LegalNumberGenerate": [],
      "LegalNumGenOpts": [],
      "SalesKitCompIssue": [],
      "SelectedIDNumbers": [],
      "SelectedSerialNumbers": [],
      "ShipTaxSum": [],
      "SNFormat": [],
      "ExtensionTables": []
    },
    "continueProcessingOnError": true,  //固定内容
    "rollbackParentOnChildError": true  //固定内容
  };
  return shoudata;
}

function get_deliver_model3() {
  var shoudata = {
    "ds": {
      "ShipHead": []
    },
    "packNum": 324, //以上生成的装箱单
    "orderNum": 0  //固定内容
  };
  return shoudata;
}


function get_deliver_model4() {
  var shoudata = {
    "ds": {
      "ShipHead": [],
      "ShipHeadAttch": [],
      "CartonTrkDtl": [],
      "ShipDtl": [],
      "ShipDtlAttch": [],
      "ShipCOO": [],
      "ShipDtlPackaging": [],
      "ShipDtlTax": [],
      "ShipMisc": [],
      "ReplicatedPacks": [],
      "ShipUPS": [],
      "LegalNumberGenerate": [],
      "LegalNumGenOpts": [],
      "SalesKitCompIssue": [],
      "SelectedIDNumbers": [],
      "SelectedSerialNumbers": [],
      "ShipTaxSum": [],
      "SNFormat": [],
      "ExtensionTables": []
    },
    "continueProcessingOnError": true,  //固定内容
    "rollbackParentOnChildError": true  //固定内容
  };
  return shoudata;
}


function get_deliver_model5() {
  var shoudata = {
    "ds": {
      "ShipHead": [],
      "ShipDtlAttch": [],
      "ShipCOO": [],
      "ShipDtlPackaging": [],
      "ShipDtlTax": [],
      "ShipMisc": [],
      "ReplicatedPacks": [],
      "ShipUPS": [],
      "LegalNumberGenerate": [],
      "LegalNumGenOpts": [],
      "SalesKitCompIssue": [],
      "SelectedIDNumbers": [],
      "SelectedSerialNumbers": [],
      "ShipTaxSum": [],
      "SNFormat": [],
      "ExtensionTables": []
    },
    "continueProcessingOnError": true,  //固定内容
    "rollbackParentOnChildError": true  //固定内容
  };
  return shoudata;
}




function get_receipt_model() {
  userinfo = get_user_info();
  var shoudata = {
    "pcJobNum": "2471", //工单号
    "piAssemblySeq": 0, //单成品号
    "pcTranType": "MFG-STK",
    "pcProcessID": "RcptToInvEntry",
    "ds": {
      "PartTran": [
        {
          "RowMod": "U",
          "Plant" : userinfo.Site,
          "Plant2" : userinfo.Site,
        }
      ]
    }
  }
  return shoudata;
}

function get_receipt_model2() {
  var shoudata = {
    "ds": {
      "PartTran": []
    },
    "pdSerialNoQty": "0",
    "plNegQtyAction": true,
    "pcProcessID": "RcptToInvEntry"
  }
  return shoudata;
}


function get_transaction_model() {
  var shoudata = {
    "Company": "",
    "PackageID": "",
    "ShelfNum": "",
    "LotNum": "", //批号
    "PartNum": "",//物料
    "TranType": "",
    "TranQty": 0,
    "IUM": "",
    "FromWarehouseCode": "",
    "FromBinNum": "",
    "ToWarehouseCode": "",
    "ToBinNum": "",
    "TranDate": "", //日期
    "TranTime": 0,
    "PackNum": 0, //出货
    "PartDescription":"",
    "PackLine": 0,
    "PackSlip": "",//收货
    "PONum": 0, //采购单
    "POLine": 0,
    "PORelNum": 0,
    "JobNum": 0,//工單
    "AssemblySeq": 0,
    "JobSeq": 0,
    "OrderNum": 0,//訂單
    "OrderLine": 0,
    "OrderRelNum": 0,
    "DMRNum":0,
    "ActionNum":0,
    "NonConfID":0,
    "RMANum":0,
  }
  return shoudata;
}



function get_status_model() {
  var shoudata = {
    "Company": "",
    "PackageID": "",
    "ShelfNum": "",
    "LotNum": "",
    "PartNum": "",
    "PartDescription":"",
    "OnhandQty": 0,
    "IUM": "",
    "WarehouseCode": "",
    "BinNum": ""
  }
  return shoudata;
}



function get_partLot_model() {
  var shoudata = {
    "ds": {
      "PartLot": [
        {
        "Company": "EPIC06", //公司编号
        "PartNum": "01C1", //物料编号
        "LotNum": "L001", // 批号
        "PartLotDescription": "L001", //批号描述
        "OnHand": false,
        "FirstRefDate": null,
        "LastRefDate": null,
        "LotLaborCost": "0.00000",
        "LotBurdenCost": "0.00000",
        "LotMaterialCost": "0.00000",
        "LotSubContCost": "0.00000",
        "LotMtlBurCost": "0.00000",
        "ExpirationDate": null,
        "ShipDocAvail": false,
        "Batch": "",
        "MfgBatch": "",
        "MfgLot": "",
        "HeatNum": "",
        "FirmWare": "",
        "BestBeforeDt": null,
        "MfgDt": null,
        "CureDt": null,
        "ExpireDt": null,
        "FIFOLotLaborCost": "0.00000",
        "FIFOLotBurdenCost": "0.00000",
        "FIFOLotMaterialCost": "0.00000",
        "FIFOLotSubContCost": "0.00000",
        "FIFOLotMtlBurCost": "0.00000",
        "CSFLMWComOath": "",
        "CSFCJ5FormNbr": "",
        "CSFCJ5Vessel": "",
        "CSFCJ5ApvlStart": null,
        "CSFCJ5ApvlEnd": null,
        "ImportNum": "",
        "ImportedFrom": 0,
        "ImportedFromDesc": "",
        "SysRevID": "0",
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "TransactionSource": "",
        "ScrLotBurdenCost": "0.00000",
        "ScrLotLaborCost": "0.00000",
        "ScrLotMaterialCost": "0.00000",
        "ScrLotMtlBurCost": "0.00000",
        "ScrLotSubContCost": "0.00000",
        "Plant": "",
        "OnHandQty": "0.00000000",
        "CSFCJ5Avail": false,
        "CSFLMWAvail": false,
        "PartNumPricePerCode": "",
        "PartNumTrackDimension": false,
        "PartNumIUM": "",
        "PartNumSalesUM": "",
        "PartNumTrackLots": false,
        "PartNumPartDescription": "",
        "PartNumSellingFactor": "0",
        "PartNumTrackSerialNum": false,
        "RowMod": "A"
        }
      ]
    },
    "partNum": "01C1"  // 物料编号
  }
  return shoudata;
}


function get_partLot_model1() {
  var shoudata = {
    "ds": {
      "PartLot": [
        {
        "Company": "EPIC06", //公司编号
        "PartNum": "01C1", //物料编号
        "LotNum": "L001", // 批号
        "PartLotDescription": "L001", //批号描述
        "OnHand": false,
        "FirstRefDate": null,
        "LastRefDate": null,
        "LotLaborCost": "0.00000",
        "LotBurdenCost": "0.00000",
        "LotMaterialCost": "0.00000",
        "LotSubContCost": "0.00000",
        "LotMtlBurCost": "0.00000",
        "ExpirationDate": null,
        "ShipDocAvail": false,
        "Batch": "",
        "MfgBatch": "",
        "MfgLot": "",
        "HeatNum": "",
        "FirmWare": "",
        "BestBeforeDt": null,
        "MfgDt": null,
        "CureDt": null,
        "ExpireDt": null,
        "FIFOLotLaborCost": "0.00000",
        "FIFOLotBurdenCost": "0.00000",
        "FIFOLotMaterialCost": "0.00000",
        "FIFOLotSubContCost": "0.00000",
        "FIFOLotMtlBurCost": "0.00000",
        "CSFLMWComOath": "",
        "CSFCJ5FormNbr": "",
        "CSFCJ5Vessel": "",
        "CSFCJ5ApvlStart": null,
        "CSFCJ5ApvlEnd": null,
        "ImportNum": "",
        "ImportedFrom": 0,
        "ImportedFromDesc": "",
        "SysRevID": "0",
        "SysRowID": "00000000-0000-0000-0000-000000000000",
        "TransactionSource": "",
        "ScrLotBurdenCost": "0.00000",
        "ScrLotLaborCost": "0.00000",
        "ScrLotMaterialCost": "0.00000",
        "ScrLotMtlBurCost": "0.00000",
        "ScrLotSubContCost": "0.00000",
        "Plant": "",
        "OnHandQty": "0.00000000",
        "CSFCJ5Avail": false,
        "CSFLMWAvail": false,
        "PartNumPricePerCode": "",
        "PartNumTrackDimension": false,
        "PartNumIUM": "",
        "PartNumSalesUM": "",
        "PartNumTrackLots": false,
        "PartNumPartDescription": "",
        "PartNumSellingFactor": "0",
        "PartNumTrackSerialNum": false,
        "RowMod": "A"
        }
      ]
    }
  }
  return shoudata;
}



function get_partLot_model2() {
  var shoudata = {
    "ds": {
      "PartLot": []
    }
  }
  return shoudata;
}




function get_transfer_model() {
  var shoudata = {
    "ds": {
        "InvTrans": [
          {
            "Company": "EPIC06",  // 公司编号
            "TranDate": "2022-08-03T07:46:11.153Z",  //时间
            "FromWarehouseCode": "CHI",  //转出仓库编号
            "FromWarehouseDesc": "Main", //转出仓库描述
            "ToWarehouseCode": "RCV", //转入仓库编号
            "ToWarehouseDesc": "Receiving Area", //转入仓库描述
            "FromBinNum": "00-00-00", //转出仓位编号
            "FromBinDesc": "00-00-00", //转出仓仓位描述
            "ToBinNum": "RCV-1",  //转入仓位编号
            "ToBinDesc": "Receiving Area 1",//转入仓位描述
            "FromLotNumber": "",  //如果有批号填入批号
            "ToLotNumber": "", //如果有批号填入批号
            "FromOnHandQty": 0,
            "ToOnHandQty": 0,
            "Plant": "MfgSys",
            "Plant2": "MfgSys",
            "PartNum": "001MP", //物料编码
            "TrackDimension": false,
            "TrackSerialnumbers": false,
            "TrackLots": false, //如果是有批号的这里为true
            "PartDescription": "001MP", //物料描述
            "SearchWord": "",
            "TranReference": "",
            "FromPlant": "",
            "FromPlantTracking": false,
            "ToPlant": "",
            "ToPlantTracking": false,
            "FromOnHandUOM": "",
            "TransferQty": 1,   //转仓数量
            "TransferQtyUOM": "EA", //转仓单位
            "ToOnHandUOM": "",
            "TrackingUOM": "",
            "TrackingQty": 0,
            "TranDocTypeID": "",
            "ToOrderNum": 0,
            "ToOrderLine": 0,
            "ToOrderRelNum": 0,
            "PCID": "",
            "FSAAction": "",
            "EpicorFSA": false,
            "CallCode": "",
            "ContractCode": "",
            "WarrantyCode": "",
            "ContractNum": 0,
            "FSAEquipmentPartNum": "",
            "FSAEquipmentInstallID": 0,
            "FSAServiceOrderNum": 0,
            "FSAServiceOrderResourceNum": 0,
            "Source": "",
            "SysRowID": "00000000-0000-0000-0000-000000000000",
            "AttributeSetID": 0,
            "AttributeSetShortDescription": "",
            "AttributeSetDescription": "",
            "PartAttrClassID": "",
            "PartTrackInventoryAttributes": false,
            "PartTrackDimension": false,
            "EnableAttributeSetSearch": false,
            "WarehouseFilterPartNum_Kinetic": "",
            "WarehouseFilterPlant_Kinetic": "",
            "Key_Kinetic": "",
            "DispNumberOfPieces": 0,
            "ToAttributeSetID": 0,
            "RowMod": "U"
          }
      ]
    }
  }
  return shoudata;
}